package com.enterprise.projectManager.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PayProgress {
    @ManyToOne
    @JoinColumn(name = "contract_id")
    private Contract contract;
    @Id
    private String payId;
    private String payPlan;
    private Double moneyPaid;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date payDate;
    private Double moneyNotPaid;
}

